package com.doit.demo04;

import org.apache.commons.io.IOUtils;

import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

public class test_IO {
    public static void main(String[] args) throws IOException {

//        InputStream in = new FileInputStream("day21\\Commons\\mm.jpg");
//        OutputStream out = new FileOutputStream("day21\\Commons\\mm2.jpg");
//
//        IOUtils.copy(in,out);
//
//
//        IOUtils.closeQuietly(out);
//        IOUtils.closeQuietly(in);


        Writer w = new FileWriter("day21\\Commons\\1.txt");

        IOUtils.write("你好",w);

        IOUtils.closeQuietly(w);



    }
}
